<template>
  <n-alert
    v-if="isDeliveryPlugin"
    type="warning"
    size="small"
    closable
    :bordered="false"
    class="mb-10"
  >
    腾讯已开通平台订单发货管理功能，可能会影响结算周期
    <x-button
      text
      type="primary"
      tag="a"
      href="https://doc.weixin.qq.com/doc/w3_AEYALQbmAEs5ToGLyFxTlumE1OrV1?scode=ALkAXQfzABA4oEAbG3AEYALQbmAEs"
      target="_blank"
    >
      查看详情
    </x-button>
  </n-alert>
</template>

<script setup lang="ts">
  import { NAlert } from 'naive-ui'
  import { XButton } from '@/components'
  import { computed } from 'vue'
  import { useStore } from '@/store'

  const store = useStore()

  const isDeliveryPlugin = computed(() => store.state['store-manage'].storeDetail?.deliveryPluginStatus === 1)
</script>

<style scoped></style>
